package com.demo.meidianapp.mvp.model;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface DownloadService {
    @GET
    @Streaming
    Observable<ResponseBody> download(@Url String url);

//
//    @GET("apk/{fileName}") //{fileName}是动态码
//    @Streaming
//    Observable<ResponseBody> downLoadAPK(@Path("fileName") String fileName);
//
//
//    @GET("apk/{fileName}") //{fileName}是动态码
//    @Streaming
//    Observable<ResponseBody> downLoadAPKB(@Header("RANGE") String start, @Path("fileName") String
//            fileName);



}
